package com.coolyu.lab.data;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class VoteObject {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	
	@Persistent
	private String IP;
	
	@Persistent
	private String time;
	
	@Persistent
	private String choice;
	
	public VoteObject(String IP,String time,String choice){
		this.IP = IP;
		this.time = time;
		this.choice = choice;
	}
	
	public String getIP(){
		return IP;
	}
	public String getTime(){
		return time;
	}
	public String getChoice(){
		return choice;
	}

}